public class Test {
    public static void main(String[] args) {
        Solution2 s2 = new Solution2();
        int[] record = {9, 7, 5, 4, 6};
        System.out.println(s2.reversePairs(record));
    }
}
